'use strict';
myApp.factory('$serDashboard', function($localStorage, $resource){
	var setSend = function(data, url){
			data = data || {};
			url = admin_url + url;
			return $resource(url)
				.save(data)
				.$promise;
		};
	return {
		getDashboard: function(data){
			return setSend(data, 'Data/getDashboard');
		},
	}
});
